package com.hiultra.common.core.domain.entity;

import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类对象 arc_catalog
 *
 * @author ls
 * @date 2022-07-28
 */
public class ArcCatalog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    private Long catalogId;

    private Long parentId;

    @Excel(name = "上级分类")
    private String parentName;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String catalogName;

    /**
     * 0-正常,1-停用
     */
    private Integer status=0;

    /**
     * 0-正常，1-删除
     */
    private Integer delflag=0;

    /**
     * 子部门
     */
    private List<ArcCatalog> children = new ArrayList<ArcCatalog>();
    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 显示顺序
     */
    private Integer orderNum;
    /**
     * 分类编号
     */
    private Long typeCode;

    /**
     * 户号分类名称
     */
    @Excel(name = "户号分类名称")
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(Long typeCode) {
        this.typeCode = typeCode;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<ArcCatalog> getChildren() {
        return children;
    }

    public void setChildren(List<ArcCatalog> children) {
        this.children = children;
    }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    public Long getCatalogId() {
        return catalogId;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }

    public Integer getDelflag() {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("catalogId", getCatalogId())
                .append("parentId", getParentId())
                .append("catalogName", getCatalogName())
                .append("ancestors", getAncestors())
                .append("orderNum", getOrderNum())
                .append("status", getStatus())
                .append("delflag", getDelflag())
                .toString();
    }
}
